

package net.qiqbframework.messaging.monitoring;



import net.qiqbframework.messaging.Message;

import javax.annotation.Nonnull;

public enum NoOpMessageMonitor implements MessageMonitor<Message<?>> {

    INSTANCE;


    @SuppressWarnings("SameReturnValue")
    public static NoOpMessageMonitor instance() {
        return INSTANCE;
    }

    @Override
    public MonitorCallback onMessageIngested(@Nonnull Message<?> message) {
        return NoOpMessageMonitorCallback.INSTANCE;
    }

}
